﻿@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <title>Select</title>
    <script type="text/javascript" src="/Scripts/jquery.js"></script>
    <script type="text/javascript" src="/Scripts/plug.js"></script>
    <script type="text/javascript">
        var control = new plug.Control();
        var datasource = @Html.Raw(ViewBag.List);

        $(function () {
            control.BuildRelationSelect('province', 'city', datasource);
        });
    </script>
</head>
<body>
    <select id="province"></select> -- <select id="city"></select>

</body>
</html>
